import Loadable from '../utils/Loadable'
const Home = Loadable(()=>import("../pages/Home"))
const Homes = Loadable(()=>import("../pages/Homes"))
const My = Loadable(()=>import("../pages/My"))
const Car = Loadable(()=>import("../pages/Car"))
const Xiang = Loadable(()=>import("../pages/Xiang"))
const Deng =Loadable(()=>import('../pages/Deng'))
let routerList=[
    {
        path:'/home',
        com:Home,
        children:[
            {
                path:"/home/homes",
                com:Homes,
                title:'首页'
            },
            {
                path:"/home/car",
                com:Car,
                title:'购物车'
            },
            {
                path:"/home/my",
                com:My,
                title:'我的'
            },
        ]
    },
    {
        path:'/xiang',
        com:Xiang
    },
    {
        path:'/deng',
        com:Deng
    },
    {
        to:'/home',
        from:'/'
    }
]
export default routerList